<?php
if (!defined('BASEPATH'))
    exit('No direct script access allowed');
/**
 * Description of logout
 *
 * @author Admin
 */

class logout extends MY_Controller
{
    
    function index()
    {
        user_logout();
        redirect(url_create('admin','login'));
    }
    
}

?>
